home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / misc / linuxupg.000 / linuxupg / upgrade / Makefile < prev    next >
Encoding:
Makefile  |  1995-03-23  |  513 b   |  21 lines

  1. BINDIR=/sbin
  2. MANDIR=/usr/man/man8
  3.  
  4. install: 
  5.     cp -f bdflush $(BINDIR)/update
  6.     if [ -d $(MANDIR) ] ; then cp bdflush.8 $(MANDIR) ; fi
  7.     @if [ -f $(BINDIR)/bdflush ] ; then echo "Warning - $(BINDIR)/bdflush exists.  Please remove and verify "; fi
  8.     @if [ -f $(BINDIR)/bdflush ] ; then echo "it is not referenced in /etc/rc."; fi
  9.  
  10.  
  11. bdflush: bdflush.c
  12.     $(CC) -s -Wall -O2 -o bdflush bdflush.c
  13.     
  14. clean:
  15.     rm -f bdflush
  16.  
  17. dist:    clean
  18.     (mydir=`basename \`pwd\``;\
  19.     cd .. && tar cvvf - $$mydir | gzip -9 > $${mydir}.tar.gz)
  20.  
  21.